#include "Resource.h"
#include "Globals.h"
#include <cassert>

void Resource::decRef()
{
    if(count == 0)
        assert(false);

    count--;

    if(count == 0)
        Globals::resource_manager.release(this);
}
